<?php

namespace app\common\model\system\merchant;

use app\common\model\BaseModel;
use app\common\model\user\User;

class FinancialWechat extends BaseModel
{

    public static function tablePk(): ?string
    {
        return 'financial_wechat_id';
    }

    public static function tableName(): string
    {
        return 'financial_wechat';
    }

    public function user()
    {
        return $this->hasOne(User::class,'uid','uid');
    }

    public function merchant()
    {
        return $this->hasOne(Merchant::class,'mer_id','mer_id');
    }
}
